package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用于存储用户对动态的点赞记录
 * </p>
 *
 * @author EXiaoKe
 * @since 2025-04-14
 */
@Getter
@Setter
@ToString
@TableName("tz_likes")
public class Like implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 点赞记录的唯一标识符
     */
    @TableId(value = "like_id", type = IdType.AUTO)
    private Long likeId;

    /**
     * 被点赞的动态ID
     */
    private Long postId;

    /**
     * 点赞者的用户ID
     */
    private String userId;

    /**
     * 点赞时间
     */
    private LocalDateTime createdAt;
}
